x86, shadow: Allow removing writable mappings from splintered page tables.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 15 Sep 2008 10:34:42 +0000 (11:34 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 15 Sep 2008 10:34:42 +0000 (11:34 +0100)
commitb42db2ecdfe87674ad7544840d5e5f0bd7516135
treeef15e88ff67d7b7496597cefb624046df1e6f42d
parente7a897511962fd2fad76eaabc30e79954d377043
x86, shadow: Allow removing writable mappings from splintered page tables.

The moving of the pagetable mapping in the linux kernel exposed the
fact that under the linux kernel sh_rm_write_access_from_sl1p was
always failing.

Linux seems to use big pages to access page tables, so we should
instruct the shadow code to be able to remove writable mappings from
splintered pagetables as well, avoiding using OS heuristic (which were
failing in 2.6.27 before George patch, leading to brute-force search
at each resync).

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c